<?php
global $JA_PERMISSION_CONFIG;
include TPLPATH . 'header.html'; 
?>
<div class="box">
    <form action="<?php echo jaUrl('role', 'doadd'); ?>" method="post" id="jaform">
        <fieldset>
            <label>角色名称:</label>
            <input type="text" value="" name="name" class="small" /><br class="hid" />
            <label>权限:</label>
            <ul class="field-list">
                <?php
                if (!empty($JA_PERMISSION_CONFIG)) {
                    foreach ($JA_PERMISSION_CONFIG as $key => $val) {
                ?>
                <li><input type="checkbox" value="<?php echo $key;?>" name="permissions[]" class="checkbox" /> <?php echo $val['name'];?></li>
                <?php
                    }
                }
                ?>
            </ul>
            <label>排序:</label>
            <input type="text" value="99" name="order" class="small mini" /><br class="hid" />
            <p></p>
            <a title="Submit" class="button" href="#" onclick="$('#jaform').submit();"><span>提交</span></a>
            <span class="clear"></span>
        </fieldset>
    </form>
</div>
<?php include TPLPATH . 'footer.html'; ?>
